import { ADD_USER } from "../actionType";
const userState = {
    user:null
}

export const reducerUser = (state=userState,action)=>{
    switch(action.type){
        case ADD_USER:
            state.user = action.user
            return state
        default:
            return state
    }
}